import Vue from 'vue'
import App from './App'
import store from './common/store'   //全局引入
import request from './common/request'
import Request from 'luch-request'

Vue.prototype.$store = store  //实例化
Vue.prototype.$request = request
Vue.config.productionTip = false
const http = new Request({
  // baseURL: "http://81.68.146.156:8080/",
  // baseURL: "http://172.22.66.40:8080/",
  baseURL: "http://192.168.43.117:8080/",

  header: { "content-type": "application/x-www-form-urlencoded" },
});
Vue.prototype.$http = http;

var api = {
  admin: "/ShareYunAlbum/administratorServlet"
}

Vue.prototype.$api = api;

App.mpType = 'app'

const app = new Vue({
  ...App
})
app.$mount()
